home *** CD-ROM | disk | FTP | other *** search
/ BBS Toolkit / BBS Toolkit.iso / wildcat / uparm11.zip / USERPARM.DOC < prev    next >
Text File  |  1992-12-05  |  3KB  |  57 lines

  1. *****************************************************************************
  2.                        U S E R P A R M  v1.1 12-06-92
  3.                        Copyright 1992, Doug McClellan 
  4. *****************************************************************************
  5. USERPARM.COM reads data from the BBS dropfile USERINFO.DAT and extracts ten
  6. parameters; user's first name, user's last name, connect rate, ansi(Y/N),
  7. mnp(Y/N), time invoked, date invoked, minutes remaining, current conference,
  8. and security level name. USERPARM.COM then passes these parameters to a batch 
  9. file you define via PASSPARM.BAT. Here's an abbreviated example:     
  10.                                                                         
  11.   USERPARM.COM target.bat ->> command line with your target batch file                     
  12.   PASSPARM.BAT            ->> contents: "target.bat <comport> <baud>..." 
  13.                                                                         
  14. PASSPARM.BAT is created by USERPARM.COM, and must always be called after 
  15. USERPARM.COM in a batch file. PASSPARM.BAT calls 'target.bat,' and passes 
  16. the extracted variables from USERINFO.DAT to DOS replacement variables in 
  17. TARGET.BAT. The DOS command SHIFT is necessary in TARGET.BAT to access the 
  18. tenth (security level name), as DOS currently only supports nine active 
  19. replacement variables in a batch file. A more complete application might 
  20. look like this: 
  21.  
  22.   @echo off
  23.   if exist passparm.bat erase passparm.bat
  24.   c:\wc30\utils\userparm c:\wc30\show-me.bat
  25.   if exist passparm.bat passparm.bat
  26.   :end
  27.  
  28. PASSPARM.BAT executes SHOW-ME.BAT, passing the ten parameters in its command 
  29. line. After successfully executing USERPARM.COM, you can view the contents of 
  30. PASSPARM.BAT to see how it works. SHOW-ME.BAT (supplied) displays the para-
  31. meters passed from PASSPARM.BAT, and provides an example on how to access the 
  32. 10th replacement variable. 
  33.  
  34. Notes: Make sure USERINFO.DAT is in the current path or directory! 
  35. Here is the order in which parameters are passed:
  36.  
  37.     1)  first name                   2)  last name               
  38.     3)  connect rate                 4)  ansi enabled? Y/N         
  39.     5)  error correction? Y/N        6)  time invoked              
  40.     7)  date invoked                 8)  minutes remaining  
  41.     9)  current conference          10)  security level name                
  42.     
  43. Call my BBS if you have problems or suggestions; 
  44.  
  45.   CloudBase! (503) 744-0668 : 24 hours, HST-DS, fido 1:152/56. 
  46.   (Tell me if you're a visiting sysop, and I'll provide appropriate access). 
  47.  
  48. If you find this program useful, a $5 encouragement would be appreciated: 
  49.  
  50.                             Doug McClellan
  51.                             814 N Cloverleaf Lp
  52.                             Springfield, OR 97477
  53.  
  54. To extract parameters from DOOR.SYS, download DPARM12.ZIP. You can find it on 
  55. either the MSI support board, Charlatan's Cabin, or my own BBS.
  56. **********************************( eof )***********************************
  57.